package com.hfzy.ihk.web.callhistoryold.task;


import com.hfzy.ihk.web.callhistoryold.client.CallHistoryCrmRmiService;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

@Slf4j
public class CallHistoryCrmRunnable implements Runnable {

    private CallHistoryCrmRmiService callHistoryCrmRmiService;

    private Long time;

    private Integer userId;

    private String customerId;



    public CallHistoryCrmRunnable(CallHistoryCrmRmiService callHistoryCrmRmiService, Long time, Integer userId, String customerId){
        this.callHistoryCrmRmiService = callHistoryCrmRmiService;
        this.time = time;
        this.userId = userId;
        this.customerId = customerId;

    }

    @Override
    public void run() {
        Map rsMap = callHistoryCrmRmiService.addConnectTimeByDate(time,userId,customerId);
//        log.info(rsMap.toString());
    }
}
